package com.yidu.ladder.base.domain;

import java.io.Serializable;

public class SubareaVo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2859824357272389413L;
	/**
	 * 分区Id
	 */
	private String subareaId;
	/**
	 * 分区名
	 */
	private String subareaName;
	/**
	 * 区域Id
	 */
	private String areaId;
	/**
	 * 省
	 */
	private String province;
	/**
	 * 市
	 */
	private String city;
	/**
	 * 县
	 */
	private String district;
	/**
	 * 定区Id
	 */
	private String ripAreaId;
	/**
	 * 起始号
	 */
	private Integer startNumber;
	/**
	 * 终止号
	 */
	private Integer endNumber;
	/**
	 * 单双号
	 */
	private Integer oddEvenNumber;
	/**
	 * 助记码
	 */
	private String mnemoniCode;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 是否可用	Y 可用	N 不可用
	 */
	private String useable;
	/**
	 * 页码
	 */
	private Integer page;
	/**
	 * 每页显示数量
	 */
	private Integer limit;
	
	public SubareaVo() {
		super();
	}

	public SubareaVo(String subareaId, String subareaName, String areaId, String province, String city, String district,
			String ripAreaId, Integer startNumber, Integer endNumber, Integer oddEvenNumber, String mnemoniCode,
			String description, String useable, Integer page, Integer limit) {
		super();
		this.subareaId = subareaId;
		this.subareaName = subareaName;
		this.areaId = areaId;
		this.province = province;
		this.city = city;
		this.district = district;
		this.ripAreaId = ripAreaId;
		this.startNumber = startNumber;
		this.endNumber = endNumber;
		this.oddEvenNumber = oddEvenNumber;
		this.mnemoniCode = mnemoniCode;
		this.description = description;
		this.useable = useable;
		this.page = page;
		this.limit = limit;
	}

	public String getSubareaId() {
		return subareaId;
	}

	public void setSubareaId(String subareaId) {
		this.subareaId = subareaId;
	}

	public String getSubareaName() {
		return subareaName;
	}

	public void setSubareaName(String subareaName) {
		this.subareaName = subareaName;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getRipAreaId() {
		return ripAreaId;
	}

	public void setRipAreaId(String ripAreaId) {
		this.ripAreaId = ripAreaId;
	}

	public Integer getStartNumber() {
		return startNumber;
	}

	public void setStartNumber(Integer startNumber) {
		this.startNumber = startNumber;
	}

	public Integer getEndNumber() {
		return endNumber;
	}

	public void setEndNumber(Integer endNumber) {
		this.endNumber = endNumber;
	}

	public Integer getOddEvenNumber() {
		return oddEvenNumber;
	}

	public void setOddEvenNumber(Integer oddEvenNumber) {
		this.oddEvenNumber = oddEvenNumber;
	}

	public String getMnemoniCode() {
		return mnemoniCode;
	}

	public void setMnemoniCode(String mnemoniCode) {
		this.mnemoniCode = mnemoniCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((areaId == null) ? 0 : areaId.hashCode());
		result = prime * result + ((city == null) ? 0 : city.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((district == null) ? 0 : district.hashCode());
		result = prime * result + ((endNumber == null) ? 0 : endNumber.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((mnemoniCode == null) ? 0 : mnemoniCode.hashCode());
		result = prime * result + ((oddEvenNumber == null) ? 0 : oddEvenNumber.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((province == null) ? 0 : province.hashCode());
		result = prime * result + ((ripAreaId == null) ? 0 : ripAreaId.hashCode());
		result = prime * result + ((startNumber == null) ? 0 : startNumber.hashCode());
		result = prime * result + ((subareaId == null) ? 0 : subareaId.hashCode());
		result = prime * result + ((subareaName == null) ? 0 : subareaName.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SubareaVo other = (SubareaVo) obj;
		if (areaId == null) {
			if (other.areaId != null)
				return false;
		} else if (!areaId.equals(other.areaId))
			return false;
		if (city == null) {
			if (other.city != null)
				return false;
		} else if (!city.equals(other.city))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (district == null) {
			if (other.district != null)
				return false;
		} else if (!district.equals(other.district))
			return false;
		if (endNumber == null) {
			if (other.endNumber != null)
				return false;
		} else if (!endNumber.equals(other.endNumber))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (mnemoniCode == null) {
			if (other.mnemoniCode != null)
				return false;
		} else if (!mnemoniCode.equals(other.mnemoniCode))
			return false;
		if (oddEvenNumber == null) {
			if (other.oddEvenNumber != null)
				return false;
		} else if (!oddEvenNumber.equals(other.oddEvenNumber))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (province == null) {
			if (other.province != null)
				return false;
		} else if (!province.equals(other.province))
			return false;
		if (ripAreaId == null) {
			if (other.ripAreaId != null)
				return false;
		} else if (!ripAreaId.equals(other.ripAreaId))
			return false;
		if (startNumber == null) {
			if (other.startNumber != null)
				return false;
		} else if (!startNumber.equals(other.startNumber))
			return false;
		if (subareaId == null) {
			if (other.subareaId != null)
				return false;
		} else if (!subareaId.equals(other.subareaId))
			return false;
		if (subareaName == null) {
			if (other.subareaName != null)
				return false;
		} else if (!subareaName.equals(other.subareaName))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "SubareaVo [subareaId=" + subareaId + ", subareaName=" + subareaName + ", areaId=" + areaId
				+ ", province=" + province + ", city=" + city + ", district=" + district + ", ripAreaId=" + ripAreaId
				+ ", startNumber=" + startNumber + ", endNumber=" + endNumber + ", oddEvenNumber=" + oddEvenNumber
				+ ", mnemoniCode=" + mnemoniCode + ", description=" + description + ", useable=" + useable + ", page="
				+ page + ", limit=" + limit + "]";
	}

	
}
